package com.study.model.pojo;

import java.io.Serializable;
import javax.persistence.*;
import java.util.Date;


/**
 * The persistent class for the service database table.
 * 
 */
@Entity
@NamedQuery(name="Service.findAll", query="SELECT s FROM Service s")
public class Service implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@Column(name="ser_id")
	private int serId;
	
	@Column(name="ser_content")
	private String serContent;

	@Column(name="ser_feednack")
	private String serFeednack;

	@Column(name="ser_name")
	private String serName;

	@Column(name="ser_remark")
	private String serRemark;

	@Column(name="ser_spendtime")
	private double serSpendtime;

	@Temporal(TemporalType.DATE)
	@Column(name="ser_start")
	private Date serStart;

	@Column(name = "is_show")
	private int isShow;
	

	//bi-directional many-to-one association to Customer
	@ManyToOne
	@JoinColumn(name="cus_id")
	private Customer customer;

	//bi-directional many-to-one association to Dictionary
	@ManyToOne
	@JoinColumn(name="ser_type")
	private Dictionary dictionary1;

	//bi-directional many-to-one association to Dictionary
	@ManyToOne
	@JoinColumn(name="ser_mode")
	private Dictionary dictionary2;

	//bi-directional many-to-one association to Dictionary
	@ManyToOne
	@JoinColumn(name="ser_state")
	private Dictionary dictionary3;

	//bi-directional many-to-one association to Linkman
	@ManyToOne
	@JoinColumn(name="link_id")
	private Linkman linkman;

	//bi-directional many-to-one association to User
	@ManyToOne
	@JoinColumn(name="user_id")
	private User user;

	public Service() {
	}

	public int getSerId() {
		return this.serId;
	}

	public void setSerId(int serId) {
		this.serId = serId;
	}

	public int getIsShow() {
		return this.isShow;
	}

	public void setIsShow(int isShow) {
		this.isShow = isShow;
	}

	public String getSerContent() {
		return this.serContent;
	}

	public void setSerContent(String serContent) {
		this.serContent = serContent;
	}

	public String getSerFeednack() {
		return this.serFeednack;
	}

	public void setSerFeednack(String serFeednack) {
		this.serFeednack = serFeednack;
	}

	public String getSerName() {
		return this.serName;
	}

	public void setSerName(String serName) {
		this.serName = serName;
	}

	public String getSerRemark() {
		return this.serRemark;
	}

	public void setSerRemark(String serRemark) {
		this.serRemark = serRemark;
	}

	public double getSerSpendtime() {
		return this.serSpendtime;
	}

	public void setSerSpendtime(double serSpendtime) {
		this.serSpendtime = serSpendtime;
	}

	public Date getSerStart() {
		return this.serStart;
	}

	public void setSerStart(Date serStart) {
		this.serStart = serStart;
	}

	public Customer getCustomer() {
		return this.customer;
	}

	public void setCustomer(Customer customer) {
		this.customer = customer;
	}

	public Dictionary getDictionary1() {
		return this.dictionary1;
	}

	public void setDictionary1(Dictionary dictionary1) {
		this.dictionary1 = dictionary1;
	}

	public Dictionary getDictionary2() {
		return this.dictionary2;
	}

	public void setDictionary2(Dictionary dictionary2) {
		this.dictionary2 = dictionary2;
	}

	public Dictionary getDictionary3() {
		return this.dictionary3;
	}

	public void setDictionary3(Dictionary dictionary3) {
		this.dictionary3 = dictionary3;
	}

	public Linkman getLinkman() {
		return this.linkman;
	}

	public void setLinkman(Linkman linkman) {
		this.linkman = linkman;
	}

	public User getUser() {
		return this.user;
	}

	public void setUser(User user) {
		this.user = user;
	}

}